#ifndef FRMDICE_H
#define FRMDICE_H

#include <QDialog>
#include "qdicethread.h"

namespace Ui {
class FrmDice;
}

class FrmDice : public QDialog
{
    Q_OBJECT

private:
    QDiceThread threadA;

protected:
    void closeEvent(QCloseEvent *event);

public:
    explicit FrmDice(QWidget *parent = 0);
    ~FrmDice();

private slots:
    void onthreadA_started();
    void onthreadA_finished();
    void onthreadA_newValue(int seq,int diceValue);

    void on_btnStartThread_clicked();
    void on_btnStopThread_clicked();
    void on_btnStart_clicked();
    void on_btnPause_clicked();
    void on_btnClearText_clicked();

private:
    Ui::FrmDice *ui;
};

#endif // FRMDICE_H
